package cn.cdeden.knowledge.service;


import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.SysCalendarSharing;
import cn.cdeden.knowledge.domain.dto.SysCalendarSharingDto;
import cn.cdeden.knowledge.domain.dto.SysCalendarSharingQueryParam;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

/**
* @author Guojunxu
* @date 2024-04-17
*/
public interface SysCalendarSharingService extends IService<SysCalendarSharing> {

    static final String CACHE_KEY = "sysCalendarSharing";

    /**
    * 查询数据分页
    * @param query 条件
    * @param pageable 分页参数
    * @return PageInfo<SysCalendarSharingDto>
    */
    TableDataInfo<SysCalendarSharingDto> queryAll(SysCalendarSharingQueryParam query, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param query 条件参数
    * @return List<SysCalendarSharingDto>
    */
    List<SysCalendarSharingDto> queryAll(SysCalendarSharingQueryParam query);

    SysCalendarSharing getById(Integer id);
    SysCalendarSharingDto findById(Integer id);

    /**
     * 插入一条新数据。
     */
    boolean insert(SysCalendarSharingDto resources);
    boolean updateById(SysCalendarSharingDto resources);
    boolean deleteById(Integer id);
    boolean deleteByIds(Set<Integer> ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    // void download(List<SysCalendarSharingDto> all, HttpServletResponse response) throws IOException;
}
